home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / bbs / t_rng200.zip / RINGUP.US < prev    next >
Text File  |  1997-08-04  |  37KB  |  754 lines

  1. ;
  2. ; RINGUP Configuration file
  3. ;
  4. ; Ringup/Event-Handler for Terminate
  5. ; Version 2.00
  6. ;
  7. ; Copyright (c) 1996,97
  8. ; Marcus Roeckrath
  9. ; Vikarsbusch 8
  10. ; 48308 Senden
  11. ; Germany
  12. ;
  13. ; Fido  : 2:2449/523
  14. ; E-Mail: mroeckrath@hmb.westf.fido.de
  15. ;
  16. ; Support-Telefon: 49-2536-9942
  17. ; Mailer/BBS     : 49-2536-9943 (ISDN X.75, Modem V.34)
  18. ;
  19. ;
  20. ; This program and all belonging files were developed/written and tested
  21. ; very carefully. Nevertheless I can not exclude any bugs in program or
  22. ; documentation. Because I am not a native english speaker I can not
  23. ; exclude faults when translating the german documentation. In no event
  24. ; I will be liable to you for additional damages, including any lost of
  25. ; profits, lost savings, or any other incidential or consequential damages
  26. ; arising out of the use or inability to use the program or its documentation.
  27. ; Specially I do not guarantee that your phone bill will be decreased using
  28. ; the event functionality of the program.
  29. ;
  30. ;
  31. ; You are allowed to test the shareware version for 30 days. After this
  32. ; period you have to register or to delete the program. Read RINGUP.REG
  33. ; for all neccessary information about registering RINGUP.
  34. ;
  35. ; The registration is for the purpose of obtaining a license to use RINGUP
  36. ; and that this licence does not grant me any rights of ownership of the
  37. ; software or any rights to the copyright. It is not allowed to reassemble
  38. ; or to modify the program.
  39. ;
  40. ; The shareware version is restricted in the following functions:
  41. ;
  42. ; 1. Only one event
  43. ; 2. No scanning of the outbound (for automatical Non-Boss-Calls)
  44. ;
  45. ;
  46. ; One registration is valid only for the use of the program on one computer,
  47. ; therefor you have to order a license for every pc you on which you want
  48. ; to use RINGUP. Please look at the file RINGUP.REG for more information
  49. ; about registering RINGUP.
  50. ;
  51. ;
  52. ; Terminate 5 has a built-in double device watching and event handling
  53. ; but without having the same functionality RINGUP has.
  54. ;
  55. ;
  56. ; Installation (recommendation):
  57. ;
  58. ; 1. Change to the home directory of Terminate.
  59. ; 2. Create a subdirectory in the home directory of Terminate named RINGUP.
  60. ; 3. Change to this subdirectory.
  61. ; 4. Copy RINGUP.TSC, RINGUP.BAT, RINGUP.US, CALLOUT.BAT and STARTBBS.BAT
  62. ;    to this subdirectory.
  63. ; 5. Rename RINGUP.US to RINGUP.CFG.
  64. ; 6. Configure the files RINGUP.BAT, RINGUP.CFG, CALLOUT.BAT and STARTBBS.BAT.
  65. ; 7. If you have registered RINGUP copy the keyfile RINGUP.KEY you got from
  66. ;    me to the same directory where RINGUP.CFG is stored.
  67. ;
  68. ; Read this document very carefully!
  69. ;
  70. ;
  71. ; ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION
  72. ;
  73. ; Copy or rename this file to RINGUP.CFG.
  74. ;
  75. ; You must not write protect this file because the script has to actualize
  76. ; this file! If you alter this file in the programs dos shell all changes
  77. ; will be lost when the script will actualize this configuration file
  78. ; itself. If you want to change the configuration please terminate the
  79. ; script or use the menu option "EDIT RINGUP.CFG".
  80. ;
  81. ; When updating from earlierer versions you have to adjust the configuration
  82. ; file RINGUP.CFG because I changed the structure of the configuration file
  83. ; and new options were added. You have to adjust RINGUP.BAT also because
  84. ; an internal errorlevel (245) was added and the handling of incoming calls
  85. ; was changed. Please read the file HISTORY.DOC and IMPORTAN.DOC for more
  86. ; informations.
  87. ;
  88. ; This script was developed using PreScription from Terminate 5.0. This script
  89. ; does NOT work under earlier versions of Terminate.
  90. ;
  91. ; Some lines of this configuration file are longer than 80 characters. Never
  92. ; split this lines! Please use an editor which can handle long lines without
  93. ; splitting them. The DOS editor is able to handle lines with more than
  94. ; 80 characters.
  95. ;
  96. ; To speed up the script start you can erase all comment lines from this
  97. ; file. You are not allowed to erase the ruler lines or to change the sequence
  98. ; of the common definitions (keywords) and the other definition parts. The
  99. ; configuration part of this file begins with [Config] later in this file.
  100. ;
  101. ; ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION
  102. ;
  103. ;
  104. ; You have to do the following settings in the Terminat setup section:
  105. ;
  106. ; 1. Restore port on close "No" (Configuration/Communication)
  107. ; 2. Set first Host device to "current device" (Configuration/Host settings)
  108. ; 3. Redial tries (Configuration/Point system) not to 0 or a great value
  109. ;    because Terinate will make unlimited or a great number of attempts
  110. ;    to connect when making a point system event (Boss call or Outbound
  111. ;    call).
  112. ; 4. Set "Force initstring" (Configuration (Alt-O)/Modem and dialling) to "No".
  113. ;
  114. ;
  115. ; You have to start the script using a batch file. A sample batch file
  116. ; RINGUP.BAT is included in this package. This batch file and the settings
  117. ; in the configuration part of this file are examples which you have to
  118. ; adjust.
  119. ;
  120. ; The script RINGUP.TSC watches up to two devices for rings. If a ring is
  121. ; detected the script will terminate itself and Terminate returning a specific
  122. ; errorlevel. The batch file RINGUP.BAT will take over control. Use different
  123. ; errorlevels for the devices to avoid conflicts. In this version I imple-
  124. ; mented a special service for device 1 which makes it possible to make
  125. ; different handling of calls and to watch the analogue Modem (2. device)
  126. ; via the 1. device depending on additional information in the ring message.
  127. ; You can uses this feature if your hardware will send a ring message like
  128. ; "RING [info]" which you will get only in ISDN networks nowadays.
  129. ;
  130. ;
  131. ; This script should works with all kinds of devices you can define in
  132. ; Terminate itself with the exception of the internal Capi device. The script
  133. ; works well with UART, Capi/Cfos and fossil devices. It was not tested
  134. ; with Int 14 and Digiboard interface.
  135. ;
  136. ; There is no way to use ISDN with the internal Capi device!
  137. ;
  138. ; If you wish the script answers the call and exits only if a carrier is
  139. ; recognized. This way to work is neccessary if you want to call the Ter-
  140. ; minate hostmode using the command TERMINAT /DEVICE:n /HOST /LOGIN because
  141. ; then Terminate requires a carrier. If you do not use the LOGIN parameter
  142. ; the Terminate hostmode (and Terminate) is not closed when the carrier
  143. ; disappears. RINGUP should not answer the call If you want to call a mailer.
  144. ; In this case you have to disable this feature. RINGUP does not detect
  145. ; the mode of the call (fax, voice, data) when answering the call; in some
  146. ; cases this can be determined analyzing the ISDN service indicator (only
  147. ; on 1. device).
  148. ;
  149. ; Before the script will shutdown after ring detection or after making
  150. ; a connect it will create the batch file BBS.BAT containing the following
  151. ; line:
  152. ;
  153. ; @[ringup directory]\STARTBBS.BAT <Errorlevel> <Device> <Port> <Baud> <Time to next event> <Anrufstatus> <Ring-Info> <Datum_Zeit>
  154. ;
  155. ; The meaning of the parameters is described in the file STARTBBS.BAT. You
  156. ; have to adjust the file STARTBBS.BAT to your requirements.
  157. ;
  158. ,
  159. ; If one of the 64 possible events arises the script will terminate with
  160. ; the errorlevel defined for the special event or starts a program directly.
  161. ; The script is unable to test wether the event was succesfully executed by
  162. ; the external program. The script will mark the event as executed by actua-
  163. ; lizing the last date in the RINGUP.CFG file. Normally you have to use
  164. ; different errorlevels for each event except you want to assign the same
  165. ; action to several events, f. e. you want to call your fido boss twice a
  166. ; day.
  167. ;
  168. ; If you do not define any event in the configuration file the event
  169. ; functionality of the script is shut off.
  170. ;
  171. ; If an event was missed because f. e. a user called your Terminate host
  172. ; during the whole time interval of an event, the script will not proceed
  173. ; this event outside the defined time interval. This event will be exe-
  174. ; cuted when it normally arises the next day. You can make sure that each
  175. ; event is started using special options (read later in this document:
  176. ; Keyword NORING and parameter %5 in STARTBBS.BAT).
  177. ;
  178. ; The scripts displays the next 16 events (sorted on execution time) only.
  179. ;
  180. ;
  181. ; To use the Non-Boss-Calls feature you have do put the file OUT_ALL.BAT
  182. ; (or OUTnnnn.BAT - nnnn = zone) into one of the errorlevel sections of
  183. ; the RINGUP.BAT file (CALL <Path>OUT_ALL.BAT resp. CALL <Path>OUTnnnn.BAT).
  184. ; The RINGUP script creates these batch files in the same directory where
  185. ; the RINGUP.LOG file is placed in and contains
  186. ;
  187. ; @CALL <Ringup path>CALLOUT.BAT <nodenumber>
  188. ;
  189. ; one line for each nodenumber found in your outbound. The outbound is
  190. ; scanned every time you start RINGUP, you call one of the free definable
  191. ; menu slots, you edit this configuration file (via menu) or an event was
  192. ; made. You have to adjust the file CALLOUT.BAT to your requirements. If you
  193. ; do not wish to call special nodenumbers you have either to exclude this
  194. ; nodes (look later in this file: Keyword EXNODE) or you have to set the
  195. ; status of this outbound files to HOLD. The script scans the outbound for
  196. ; the following file extensions: CLO, CUT, ILO, IUT, FLO, FUT, DLO, DUT and
  197. ; REQ.
  198. ;
  199. ; Point directories within the outbound are NOT scanned. Therefore it is
  200. ; not possible to send crashmails or request directly to points with an
  201. ; event.
  202. ;
  203. ;
  204. ; The RINGUP archiv contains a sample RINGUP.BAT file which you have to edit
  205. ; to fit your situation. Please do not change the sections which belongs to
  206. ; the errorlevels 245-255 because these are defined for internal use.
  207. ;
  208. ; List of all errorlevels used by RINGUP:
  209. ;
  210. ; 255 : Normal termination of RINGUP
  211. ; 254 : Calls Terminate
  212. ; 253 : not used yet, but reserved for future internal use
  213. ; 252 : not used yet, but reserved for future internal use
  214. ; 251 : Shows RINGUP.LOG
  215. ; 250 : Edits RINGUP.CFG
  216. ; 249 : Shows TERMINAT.LOG
  217. ; 248 : RINGUP can not find the configuration file RINGUP.CFG
  218. ; 247 : invalid key file RINGUP.KEY
  219. ; 246 : RINGUP.TSC was modified
  220. ; 245 : low memory
  221. ;
  222. ;
  223. ; The RINGUP script has to be started from the batch file RINGUP.BAT only!
  224. ;
  225. ; RINGUP.TSC has to be stored in the script directory of Terminate or in
  226. ; a directory which can be reached by a relativ path from the script direc-
  227. ; tory of Terminate. You are not allowed to store RINGUP.TSC on a drive which
  228. ; is different from the drive where Terminate is stored. By default the
  229. ; scripts assumes that SCRIPT\ is the script directory of Terminate. You can
  230. ; store all other file of RINGUP in any drive or directory you like. Start
  231. ; parameters are used to tell RINGUP and Terminate where to find the files.
  232. ; Please study the following example that you are able to handle these
  233. ; parameters correct:
  234. ;
  235. ; 1. example (common definition)
  236. ;
  237. ; <Path>TERMINAT /SCRIPT:<RINGUP-scriptpath>RINGUP <Path to other RINGUP f.>
  238. ;
  239. ; <Path> : Terminate home directory
  240. ; <RINGUP-scriptpath> : Path to RINGUP.TSC (You have to write this as relativ
  241. ;                       path to Terminates script directory). Only neccessary
  242. ;                       if RINGUP.TSC is NOT placed in Terminates script
  243. ;                       directory.
  244. ; <Path to other RINGUP f.> : Path to the other RINGUP files (RINGUP.CFG,
  245. ;                             RINGUP.KEY, RINGUP.LOG and RINGUP1.BAT). You
  246. ;                             have to specify this parameter if this files
  247. ;                             are NOT placed in the subdirectory SCRIPT\ of
  248. ;                             Terminates home directory.
  249. ;
  250. ; 2. example
  251. ;
  252. ; All files of RINGUP are placed in the subdirectoy SCRIPT\ of Terminates
  253. ; home directory which is also the script directory of Terminate; use:
  254. ;     <Path>TERMINAT /SCRIPT:RINGUP
  255. ;
  256. ; 3. example
  257. ;
  258. ; SCRIPT\ is Terminates script directory where also the compiled script
  259. ; RINGUP.TSC is placed. All other RINGUP files are placed in the subdirectory
  260. ; RINGUP\ of Terminate home directory; use:
  261. ;     <Path>TERMINAT /SCRIPT:RINGUP <Path>RINGUP\
  262. ;
  263. ; 4. example
  264. ;
  265. ; ABCDE\ is Terminates script directory. All RINGUP files are placed in
  266. ; the subdirectory RINGUP\ of Terminates home directory; use:
  267. ;     <Path>TERMINAT /SCRIPT:..\RINGUP\RINGUP <Pfad>RINGUP\
  268. ;
  269. ;
  270. ; The menu (call it pressing the <ESC> key) of RINGUP contains the following
  271. ; funktions:
  272. ;
  273. ;  1. Show the RINGUP.LOG file via external Viewer or errorlevel 251 executed
  274. ;     by the batch file.
  275. ;  2. Edit the RINGUP.CFG file via external editor or errorlevel 250 executed
  276. ;     by the batch file
  277. ;  3. Show the TERMINAT.LOG file via external Viewer or errorlevel 249
  278. ;     executed by the batch file.
  279. ;  4. Reinitialize the device(s)
  280. ;  5. Start event additional (means that the last date of this event
  281. ;     will not be actualized)
  282. ;  6. Start event mark as done (means that the last date of this event will
  283. ;     be set to todays date)
  284. ;  7. Actualize event date. In this case the last date will be set to todays
  285. ;     date and this event at the earliest will be executed automatically
  286. ;     the next day.
  287. ;  8. Deactivate event (The event will be marked with ; in the configuration
  288. ;     file.)
  289. ;  9. Call Terminate via errorlevel 254 executed by the batch file.
  290. ; 10. User definable menu slot (errorlevel / direct program execution)
  291. ; 11. User definable menu slot (errorlevel / direct program execution)
  292. ; 12. User definable menu slot (errorlevel / direct program execution)
  293. ; 13. User definable menu slot (errorlevel / direct program execution)
  294. ; 14. User definable menu slot (errorlevel / direct program execution)
  295. ; 15. User definable menu slot (errorlevel / direct program execution)
  296. ; 16. User definable menu slot (errorlevel / direct program execution)
  297. ; 17. User definable menu slot (errorlevel / direct program execution)
  298. ; 18. User definable menu slot (errorlevel / direct program execution)
  299. ; 19. Quit RINGUP (errorlevel 255)
  300. ;
  301. ; The menu options 1, 2, and 3 are started either using an Execute procedure
  302. ; or via errorlevel executed by the batch file. You can decided in which way
  303. ; the script have to do it (Keyword VIAEXEC, see later in this file).
  304. ;
  305. ; Because the menu could only be started between the main functions of the
  306. ; script (event searching, watching device 1, watching device 2) it is
  307. ; possible that you have to wait some seconds until the menu appears after
  308. ; pressing the <ESC> key, especially if the script is watching a device.
  309. ; You are allowed to press this key every time you want to do so. Please do
  310. ; not press the <ESC> key twice because this will close the menu directly
  311. ; after appearing on the screen.
  312. ;
  313. ;
  314. ; You can delete or shorten the RINGUP.LOG file every time you want to do it.
  315. ; You can also define a maximum size of the log file (Keyword L_SIZE). If
  316. ; this maximum size is exceeded the log file will be shortened to half the
  317. ; maximum size at startup. When the scripts starts the last 4 lines of the
  318. ; log file are shown in the lower part of the screen. If you detect an error
  319. ; message f. e. "Device not ready" in the log window please look at the date
  320. ; and time stamp of this message. Maybe this error has occured during an ear-
  321. ; lier use of RINGUP.
  322. ;
  323. ;
  324. ; The settings in the following configuration part of this file are EXAMPLES
  325. ; only. Please change them them to fit your situation.
  326. ;
  327. ;
  328. ;[Config]
  329. ;
  330. ; The keyword KBDPWD defines a password which you have to use to unlock the
  331. ; keyboard after locking it. The password must have a maximum length of 8
  332. ; characters containing the ascii characters 34 to 127. If the password
  333. ; followed by a ! a alarm peep is made when a wrong password is entered.
  334. ; All enterings of a wrong password are documented in the log file. The
  335. ; script will stop working for 30 seconds every time a wrong password is
  336. ; entered three times. You have 15 seconds to enter the password. If the
  337. ; keyboard is locked it will be also when script restarts after event exe-
  338. ; cution or operationg on a call (semaphore file "KEYBLOCK.RNG"). If the
  339. ; Keyboard is locked and you want to enter the menu you have to enter the
  340. ; password first. You have to relock the keyboard manually. If you comment
  341. ; out this keyword you are not able to lock the keyboard.
  342. ;
  343. ;KBDPWD password!
  344. ;
  345. ;
  346. ; The keyword L_SIZE defines the maximum size (in KB) of the log file
  347. ; RINGUP.LOG. If this size is exceeded the log file is shortened to half
  348. ; maximum size. If you put 0 in here the log file is never shortened.
  349. ;
  350. L_SIZE 128
  351. ;
  352. ;
  353. ; The keyword VIAEXEC controls the manner how the script has to call external
  354. ; programs (menu options 1-3). If you deactivate it by typing ; in front of
  355. ; VIAEXEC the script will use the internal Execute procedure otherwise the
  356. ; script will terminate using those errorlevels defined above in this file.
  357. ; On some computers I have detected problems when using the internal Excute
  358. ; method. If such an problem occurs the computer will hang after returning
  359. ; from the external program.
  360. ;
  361. ;VIAEXEC
  362. ;
  363. ;
  364. ; The keyword VIEWER defines an external file viewer.
  365. ;
  366. VIEWER C:\DOS\EDIT.COM
  367. ;
  368. ;
  369. ; The keyword EDITOR defines an external ASCII file editor.
  370. ;
  371. EDITOR C:\DOS\EDIT.COM
  372. ;
  373. ;
  374. ; Terminate pointsystem outbound, same as defined in Terminate and TerMail.
  375. ; Complete path (f. e. C:\TER500\OUT\ZONE\) or relativ path in relation to
  376. ; the home directory of Terminate (f. e. OUT\ZONE\).
  377. ;
  378. OUTDIR OUT\ZONE\
  379. ;
  380. ;
  381. ; Put in your main aka which must the same as defined in Terminate.
  382. ;
  383. ADRESS 2:2448/10.67
  384. ;
  385. ;
  386. ; Please list all nodenumbers which you want to exclude from the outbound
  387. ; scan. As a rule these should be the Akas of your boss(es). The scripts
  388. ; only accepts as many exclusions as they fit into a string variable of
  389. ; 255 bytes length (including seperation bytes).
  390. ;
  391. ; You can use one wildcard "*" either in net or node part of the nodenumber.
  392. ; The wildcard has to be the last sign in a nodenumber. Here some example:
  393. ;
  394. ;     2:*         exclude all nets of zone 2
  395. ;     2:24*       exclude all nets of region 24 in zone 2
  396. ;     2:2448/*    exclude all nodes of net 2448 in zone 2
  397. ;     2:2448/1*   exclude all nodes of net 2448 in zone 2 if their node starts
  398. ;                 with 1
  399. ;
  400. ;
  401. EXNODE 2:2449/500
  402. EXNODE 2:2449/501
  403. EXNODE 2:2449/514
  404. EXNODE 2:2449/520
  405. EXNODE 21:497/5000
  406. EXNODE 161:*
  407. EXNODE 567:*
  408. ;
  409. ;
  410. ; The keyword SEARCH defines a time period (in seconds) which had to pass
  411. ; before the script will do the next event searching. Because the script
  412. ; calculates the time to the next event you should set this value to 86400
  413. ; (24 hours). The script will choose the correct value itself to start the
  414. ; event searching. The script always uses the minimum of the value you
  415. ; defined here and that the script calculates itself. Please notice that
  416. ; the main loop of the script has the sequence "event searching - watching
  417. ; device 1 - watching device 2". Therefore the event searching normally is
  418. ; not executed when the defined time period is exactly over. As a rule the
  419. ; time period between two event searchings is a little bit longer than the
  420. ; defined time period. To get the maximum time period add the time for the
  421. ; watching on two devices to the search time.
  422. ;
  423. SEARCH 86400
  424. ;
  425. ;
  426. ; The keyword NORING defines a time period (in seconds) in which no ring
  427. ; watching is done before a event takes place.
  428. ;
  429. NORING 120
  430. ;
  431. ;
  432. ; How many devices (0,1,2) has the script to watch for rings. If you have
  433. ; defined 2 devices (device definition later in this file) but you want
  434. ; to watch device 1 only (especially if you want to use the special recogni-
  435. ; tion functions on ISDN device) you have to enter 1 at this keyword.
  436. ;
  437. DWATCH 2
  438. ;
  439. ;
  440. ; The keyword R_TIME defines the time period the script has to look for a
  441. ; ring before doing something else. You have to declare a time period which
  442. ; is long enough to get one ring in this period. You have to write this
  443. ; time period as thousandth. In Germany a value of 5500 (= 5.5 seconds) will
  444. ; work well. If you watch device 1 only you can try a value of 2005 which
  445. ; will give you faster access to the menu.
  446. ;
  447. R_TIME 5500
  448. ;
  449. ;
  450. ; If you watch device 2 using the special features of device 1 the next
  451. ; options determinates the manner how to react if device 1 recognizes a ring
  452. ; for device 2. WAIT <thousandth seconds> means that the script should wait
  453. ; this time period before it will continue working on this call. RING means
  454. ; that the scripts will test if the ring appears on device 2 also. If you
  455. ; define 0 as time period the script will continue immediately. You are
  456. ; allowed to activate one of these lines only.
  457. ;
  458. SWITCH WAIT 5000
  459. ;SWITCH RING 5500
  460. ;
  461. ; The keyword REJECT defines an AT command which forces the script to reject
  462. ; a call on device 1 only. If you are using CFos you have to use AT\H1 while
  463. ; you have to enter AT\K using the external terminal adapter Elink 310.
  464. ;
  465. REJECT AT\H1
  466. ;
  467. ;
  468. ; The keyword FERROR determines the manner RINGUP will react on a ring in the
  469. ; following cases:
  470. ; - The caller was rejected because there is no mail for him (Freepoll).
  471. ; - After answering the call it was not possible to make an connect.
  472. ; - A ring on device 1 (special feature on ISDN device watching analogue
  473. ;   device 2) could not recognized on device 2.
  474. ; Activating this keyword you can force to close the script in this fault
  475. ; cases. Then you have to work on this call within the batch file STARTBBS.BAT
  476. ; so that a correct reaction in this cases is guaranteed. The parameters
  477. ; in STARTBBS.BAT will give you all informations needed (read the explana-
  478. ; tions in this batch file).
  479. ;
  480. ;FERROR
  481. ;
  482. ;
  483. ;
  484. ; The user definable menu slots
  485. ;
  486. ; It is not allowed to overstep and to change the sequence of each field.
  487. ; You have either enter a value for errorlevel or a program name.
  488. ;
  489. ; You have not the right to use 0 (because this terminates the script with
  490. ; return to Terminate) and 245 to 255 (reserved for internal use; see above)
  491. ; as errorlevel.
  492. ;
  493. ; Menu Option: Description which is displayed as menu text.
  494. ; Error      : Errorlevel which is used when closing the script. Only needed
  495. ;              if you start a program which should not be started from the
  496. ;              script directly (f. e. a programm which uses the same ports
  497. ;              as the script or Terminate).
  498. ; Program    : Path and name of a program including all parameters needed.
  499. ;              You can use all special parameters of Terminate (!M, !CD, !E,
  500. ;              ...; Never use !E calling batch files!).
  501. ;              Defining @SCRIPT <script name> you can call other terminate
  502. ;              scripts which unfortunately does not work in all cases.
  503. ;
  504. ; If you define a menu option without program name and errorlevel 0 you can
  505. ; not access this menu option. You can use this to force programs to a
  506. ; fixed menu slot how I made it with the menu slot "DOS-Shell".
  507. ;
  508. ;Definable menu options (maximal 9 are activ)
  509. ;Menu Option               Error Program
  510. ;------------------------| |---| |------------------------------------------------------------------------------------------------------------------------------|
  511. TerMail                          C:\TER500\TERMAIL\TM.EXE !M !E
  512. Terminate User Config            C:\TER500\TERMINAT.EXE /USER !M !E
  513. Filemanager                      C:\TER500\TERMINAT.EXE /F !M !E
  514. User definable menu slot   0
  515. User definable menu slot   0
  516. User definable menu slot   0
  517. User definable menu slot   0
  518. User definable menu slot   0
  519. DOS-Shell                        COMMAND.COM !M !E
  520. ;
  521. ;
  522. ; Special features for device 1
  523. ;
  524. ; If you get additional information in the ring message from your communi-
  525. ; cation hardware RINGUP is able to analyze this informations. Normally you
  526. ; can get this informations using ISDN. Configuring the drivers (CFos and
  527. ; CAPI) correctly, you will get a RING message like:
  528. ;
  529. ; RING <caller id>/EAZ<n>/<service indicator>
  530. ;
  531. ; This makes it possible to detect analogue callers via an ISDN interface card
  532. ; or a ISDN modem, because analogue callers will have the service indicators
  533. ; 0101, 0102, 0201 und 0202 while X.75 callers will present 0700.
  534. ;
  535. ; Comparing these ring informations with the special strings you defined
  536. ; it is possible
  537. ;
  538. ; - to watch device 2 without switching to device 2.
  539. ; - to react on a call highly differential.
  540. ;
  541. ; The script will use the first special case which matches the information of
  542. ; the ring string. Therefor you have think about the sequence of the special
  543. ; cases very carefully.
  544. ;
  545. ; It is not allowed to overstep and to change the sequence of each field.
  546. ; You have to enter the A column while you have to fill out the Aka only if
  547. ; you need them.
  548. ;
  549. ; You have not the right to use 0 (because this terminates the script with
  550. ; return to Terminate) and 245 to 255 (reserved for internal use; see above)
  551. ; as errorlevel.
  552. ;
  553. ; String1-3: Characters which have to be found in the ring message.
  554. ; Time     : Time period for this special case. You are not allowed to define
  555. ;            time periods which passes midnight f. e. 23:00-5:00. The script
  556. ;            uses 24 hour clock always.
  557. ; Error    : Errorlevel which is used for this special case. If you place a
  558. ;            "$" sign in front of the errorlevel the ring will be processed by
  559. ;            the 2. device (f. e. a analogue caller was recognized by device
  560. ;            1). Using this feature you have to define the second device. If
  561. ;            you put a "-" in front of the errorlevel or instead of the error-
  562. ;            this call will be rejected; if an errorlevel is defined in this
  563. ;            case the script will terminate which this errorlevel and you
  564. ;            have to work on this call in the file STARTBBS.BAT (f. e. making
  565. ;            a callback).
  566. ; A        : Set to (capital) Y if the script should answer an incoming call;
  567. ;            if not write (capital) N. You have to set "Restore port on close"
  568. ;            to "No" in the Terminate Configuration/Communication otherwise
  569. ;            Terminate will drop down the carrier when terminating the script.
  570. ; Aka1-6   : Enables a so called freepoll feature. A caller is rejected if
  571. ;            there is no mail for him found in binkley outbound. You have to
  572. ;            write the Akas in a hexadezimal format of exactly 13 characters
  573. ;            length, means you have to add leadings zeros if needed.
  574. ;
  575. ;            ZZZNNNNFFFFPP
  576. ;
  577. ;            ZZZ  = three digits for the zone number
  578. ;            NNNN = four digits for the net number
  579. ;            FFFF = four digits for the node number
  580. ;            PP   = two digits for the point number
  581. ;
  582. ;            Examples: 21:487/523 correspond to 01501E7020B00
  583. ;                      Correspond to the outbound files (path defined above)
  584. ;                      OUT\ZONE.015\01E70020B.*
  585. ;
  586. ;                      2:2426/2070.14 correspond to 002097A08160E
  587. ;                      Correspond to the outbound files (path defined above):
  588. ;                      OUT\ZONE.002\097A0816.PNT\0000000E.*
  589. ;
  590. ;                      In your "own" Zone (see above keyword ADRESS) there is
  591. ;                      no extension at ZONE.nnn:
  592. ;                      2:2426/2070.14 correspond to 002097A08160E
  593. ;                      Correspond to the outbound files (path defined above):
  594. ;                      OUT\ZONE\097A0816.PNT\0000000E.*
  595. ;
  596. ; The Terminate script NODECONV.TSC belonging to the RINGUP archiv can make
  597. ; this conversions for you.
  598. ;
  599. ;Special treatments for device 1 (maximal 100 are activ)
  600. ;String1                  String2    String3    Time        Error A Aka 1         Aka 2         Aka 3         Aka 4         Aka 5         Aka 6
  601. ;-----------------------| |--------| |--------| |---------| |---| | |-----------| |-----------| |-----------| |-----------| |-----------| |-----------|
  602. ; All callers on EAZ1 will be rejected; script will terminate and the call
  603. ; is reported in NOSUCCES.LOG via STARTBBS.BAT.
  604. /EAZ1                                           00:00-23:59   -10 N
  605. ; All callers on EAZ2 will be rejected; script will terminate and the call
  606. ; is reported in NOSUCCES.LOG via STARTBBS.BAT.
  607. /EAZ2                                           00:00-23:59   -11 N
  608. ; Caller 3514013816 is accepted from 2 to 3.30 o'clock only if there is
  609. ; Mail for hin in binklley outbound.
  610. 3514013816                                      02:00-03:30     1 N 00200F90BB800 00200F90DDE00
  611. ; Caller 1234567 will be rejected if he calls via analogue modem.
  612. 1234567                   /01                   00:00-23:59     - N
  613. 1234567                   /02                   00:00-23:59     - N
  614. ; Caller 1234567 will be rejected from 9 to 18 o'clock if he calls using
  615. ; X.75.
  616. 1234567                                         09:00-18:00     - N
  617. ; Caller 25369943 will be rejected and called back via Terminate host if he
  618. ; calls with X.75.
  619. 25369943                  /0700                 00:00-23:59 -200  N
  620. ; Caller 25369943 will be rejected and called back via Terminate point system
  621. ; if he calls with analogue modem.
  622. 25369943                  /01                   00:00-23:59 -201  N
  623. 25369943                  /02                   00:00-23:59 -201  N
  624. ; All other analogue callers has to processed by device 2.
  625. /0101                                           00:00-23:59    $2 Y
  626. /0102                                           00:00-23:59    $2 Y
  627. /0201                                           00:00-23:59    $2 Y
  628. /0202                                           00:00-23:59    $2 Y
  629. ;
  630. ;
  631. ; The device definitions
  632. ;
  633. ; It is not allowed to overstep and to change the sequence of each field.
  634. ; You have to write the last field ("Carr") with right alignment while
  635. ; all other could be filled using left or right alignment.
  636. ;
  637. ; You can define more than two devices if you deactivate all supernumerary
  638. ; definitions by adding ; in the first column. The script always uses the
  639. ; first two activated devices even though more than two devices are not
  640. ; deactivated.
  641. ;
  642. ; You have not the right to use 0 (because this terminates the script with
  643. ; return to Terminate) and 245 to 255 (reserved for internal use; see above)
  644. ; as errorlevel.
  645. ;
  646. ; Comment: Description of the device used in screen and Log file.
  647. ; Error  : Errorlevel which is used if a ring appears.
  648. ; Nr     : Number of this Device in Terminates configuration
  649. ; P      : Com port of this device (look Terminate Configuration/Communication)
  650. ; Rate   : Baud rate of this device.
  651. ; Init   : Init string for this device. If you need an additional Return
  652. ;          within the init string write "^M" at the desired position. Use
  653. ;          "~" character for pause of 1/2 second.
  654. ; Retur  : The modem answers after executing the init string.
  655. ; Wait   : How long is needed by the device to return "OK" after executing
  656. ;          the init string. Write this value in thousendth.
  657. ; Ring   : Which string is returned by the device if a ring appears.
  658. ; A      : Set to (capital) Y if the script should answer an incoming call;
  659. ;          if not write (capital) N. You have to set "Restore port on close"
  660. ;          to "No" in the Terminate Configuration/Communication otherwise
  661. ;          Terminate will drop down the carrier when terminating the script.
  662. ; Answer : This string will be sent to the modem to answer a incoming call
  663. ;          if you have set the previous option to "Y". Normally you should
  664. ;          use ATA while few other modems needs ATS0=1 (f. e. USR modems).
  665. ; Carr   : Maximum time period (in seconds) in which a carrier has to be
  666. ;          detected by the script. If no carrier is detected the script will
  667. ;          hang up.
  668. ;
  669. ;
  670. ;Devices (maximal 2 are activ)
  671. ;Comment        Error Nr P  Rate   Init                           Retur Wait  Ring       A Answer     Carr
  672. ;-------------| |---| || || |----| |----------------------------| |---| |---| |--------| | |--------| ||
  673. ISDN on Com 4       1  1  4 115200 ATZ                            OK    1000  RING       Y ATA        10
  674. Modem on Com 7      2  2  7  57600 ATZ0                           OK    2000  RING       Y ATA        30
  675. ;
  676. ;
  677. ; Program definitions for use with the events
  678. ;
  679. ; A maximum of 32 programs can be defined which can be assigned to the events.
  680. ; If you assign such a program to an event the program will be executed
  681. ; directly from the script without leaving it (errorlevel method). Please
  682. ; do only define programs which can be started from the script without
  683. ; problems; f. e. TERMINAT /BOSS will not work!
  684. ;
  685. ; It is not allowed to overstep and to change the sequence of each field.
  686. ;
  687. ; Nr     : Number of this program, which you have to enter in the evnt defi-
  688. ;          nitions in the Errorlevel column (@ in front of the errorlevel is
  689. ;          absolut).
  690. ; Program: Path and name of a program including all parameters needed. You
  691. ;          can use all special parameters of Terminate (!M, !CD, !E, ...;
  692. ;          Never use !E calling batch files!).
  693. ;          Defining @SCRIPT <script name> you can call other terminate
  694. ;          scripts which unfortunately does not work in all cases.
  695. ;
  696. ;Programs for events (maximal 32 are activ)
  697. ;Nr   Program
  698. ;---| |------------------------------------------------------------------------------------------------------------------------------|
  699. @1    C:\TER500\TM.BAT /SCAN !M
  700. @2    C:\TER500\TERMAIL\TM.EXE /TOSS !M !E
  701. @3    C:\TER500\TERMAIL\TM.EXE /CLEAN !M !E
  702. ;
  703. ;
  704. ; The event definitions
  705. ;
  706. ; You can deactivate an event by typing ; in the first column of an event
  707. ; definition. The script will handle it in the way after executing a one
  708. ; tine event of if you deactivate an event from the menu of the script.
  709. ;
  710. ; You can define up to 64 active events. It is not allowed to overstep and to
  711. ; change the sequence of each field. All fields could be filled using left
  712. ; or right alignment. It is absolutely neccessary to fill out the last field
  713. ; ("O"). You have to use the whole space of the "Time" and "Last" field.
  714. ;
  715. ; You have not the right to use 0 (because this terminates the script with
  716. ; return to Terminate) and 245 to 255 (reserved for internal use; see above)
  717. ; as errorlevel.
  718. ;
  719. ; Comment: Description of the event used in screen and Log file.
  720. ; Error  : Errorlevel which is used if an event arises. If you want to call
  721. ;          a program directly from script type in the number of the program
  722. ;          with a leading @ as errorlevel.
  723. ; SMTWTFS: Defines the days on which this event should take place. You have to
  724. ;          use the capital X character. If an event should not take place on
  725. ;          a weekday please do not write anything in this column. Instead of
  726. ;          defining weekdays for an event you can define dates on which the
  727. ;          event should take place. You have to follow this rules:
  728. ;          DAY:nn ( nn = day; always two digits, means f. e. 05 for 5): Such
  729. ;          an event will take place only if this day exists in a month, means
  730. ;          that DAY:31 will not executed f. e. in february or april.
  731. ;          DAY:L-n (n = 1-9): Execute the event on the last but one, last
  732. ;          but two, ... day of a month.
  733. ; Time   : Time period for the event. You are not allowed to define time
  734. ;          periods which passes midnight f. e. 23:00-5:00. The script uses
  735. ;          24 hour clock always.
  736. ; Last   : On which day was this event executed the last time. If this event
  737. ;          arises the script will modify this field. You can fill in a future
  738. ;          date. In this case the script calculates the following day as
  739. ;          first appearance of this event. If this day is reached or passed
  740. ;          over the exact execution day is calculated. If last and today is
  741. ;          the same day the event is not executed even if the time period
  742. ;          is not reached.
  743. ; O      : If it is an one time event type (capital) Y otherwise type N.
  744. ;
  745. ; Events (maximal 64 are activ)
  746. ;Comment              Error SMTWTFS Time        Last       O
  747. ;-------------------| |---| |-----| |---------| |--------| |
  748. Poll Boss                10 XXXXXXX 04:30-04:55 01.08.1997 N
  749. Call Outbound-Systems    11  XXXXX  02:00-02:59 01.08.1997 N
  750. Mails-Scannen            @1 XXXXXXX 00:00-02:59 01.08.1997 N
  751. Mails-Tossen             @2 XXXXXXX 08:00-09:00 01.08.1997 N
  752. Mail-Base cleanen        @3 DAY:L   03:00-04:00 01.08.1997 N
  753. Mail-Base cleanen        @3 DAY:15  03:00-04:00 01.08.1997 N
  754.